<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>shark::ReferenceVectorAdaptation&lt; IndividualType &gt; Struct Template Reference</title>
<script type="text/javaScript" src="search/search.js"></script>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3.0.1/es5/tex-mml-chtml.js"></script>
<script src="../../mlstyle.js"></script>
<link href="../css/besser.css" rel="stylesheet" type="text/css"/>
</head>
<!-- pretty cool: each body gets an id tag which is the basename of the web page  -->
<!--              and allows for page-specific CSS. this is client-side scripted, -->
<!--              so the id will not yet show up in the served source code -->
<script type="text/javascript">
    jQuery(document).ready(function () {
        var url = jQuery(location).attr('href');
        var pname = url.substr(url.lastIndexOf("/")+1, url.lastIndexOf(".")-url.lastIndexOf("/")-1);
        jQuery('#this_url').html('<strong>' + pname + '</strong>');
        jQuery('body').attr('id', pname);
    });
</script>
<body>
    <div id="shark_old">
        <div id="wrap">
            <div id="header">
                <div id="site-name"><a href="../../sphinx_pages/build/html/index.html">Shark machine learning library</a></div>
                <ul id="nav">
                    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/installation.html">Installation</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/tutorials/tutorials.html">Tutorials</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/benchmark.html">Benchmarks</a>
                    </li>
                    <li class="active">
                        <a href="classes.html">Documentation</a>
                        <ul>
                            <li class="first"></li>
                            <li><a href="../../sphinx_pages/build/html/rest_sources/quickref/quickref.html">Quick references</a></li>
                            <li><a href="classes.html">Class list</a></li>
                            <li class="last"><a href="group__shark__globals.html">Global functions</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </div>
<div id="doxywrapper">
<!--
    <div id="global_doxytitle">Doxygen<br>Documentation:</div>
-->
    <div id="navrow_wrapper">
<!-- Generated by Doxygen 1.9.8 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceshark.html">shark</a></li><li class="navelem"><a class="el" href="structshark_1_1_reference_vector_adaptation.html">ReferenceVectorAdaptation</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="structshark_1_1_reference_vector_adaptation-members.html">List of all members</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a>  </div>
  <div class="headertitle"><div class="title">shark::ReferenceVectorAdaptation&lt; IndividualType &gt; Struct Template Reference</div></div>
</div><!--header-->
<div class="contents">

<p>Reference vector adaptation for the <a class="el" href="classshark_1_1_r_v_e_a.html" title="Implements the RVEA algorithm.">RVEA</a> algorithm.  
 <a href="structshark_1_1_reference_vector_adaptation.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_reference_vector_adaptation_8h_source.html">shark/Algorithms/DirectSearch/Operators/ReferenceVectorAdaptation.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a2e06c3dc458dc3292ed87c700ccac2c1" id="r_a2e06c3dc458dc3292ed87c700ccac2c1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structshark_1_1_reference_vector_adaptation.html#a2e06c3dc458dc3292ed87c700ccac2c1">operator()</a> (std::vector&lt; <a class="el" href="_t_s_p_8cpp.html#aa2af735cda68526094633853c8a9894d">IndividualType</a> &gt; const &amp;population, RealMatrix &amp;referenceVectors, RealVector &amp;minAngles)</td></tr>
<tr class="memdesc:a2e06c3dc458dc3292ed87c700ccac2c1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Apply adaptation operator and update the angles.  <br /></td></tr>
<tr class="separator:a2e06c3dc458dc3292ed87c700ccac2c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4cf77240090562c020ad4c5093df0ccc" id="r_a4cf77240090562c020ad4c5093df0ccc"><td class="memTemplParams" colspan="2">template&lt;typename Archive &gt; </td></tr>
<tr class="memitem:a4cf77240090562c020ad4c5093df0ccc"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="structshark_1_1_reference_vector_adaptation.html#a4cf77240090562c020ad4c5093df0ccc">serialize</a> (Archive &amp;archive)</td></tr>
<tr class="separator:a4cf77240090562c020ad4c5093df0ccc"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-methods" name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a595d5f3ea74e2b31cc6fcfe79daa262f" id="r_a595d5f3ea74e2b31cc6fcfe79daa262f"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structshark_1_1_reference_vector_adaptation.html#a595d5f3ea74e2b31cc6fcfe79daa262f">updateAngles</a> (RealMatrix const &amp;referenceVectors, RealVector &amp;minAngles)</td></tr>
<tr class="memdesc:a595d5f3ea74e2b31cc6fcfe79daa262f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compute the minimum angles between unit vectors.  <br /></td></tr>
<tr class="separator:a595d5f3ea74e2b31cc6fcfe79daa262f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a7454753da4bdaef9f4a23cb66351f007" id="r_a7454753da4bdaef9f4a23cb66351f007"><td class="memItemLeft" align="right" valign="top">RealMatrix&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structshark_1_1_reference_vector_adaptation.html#a7454753da4bdaef9f4a23cb66351f007">m_initVecs</a></td></tr>
<tr class="memdesc:a7454753da4bdaef9f4a23cb66351f007"><td class="mdescLeft">&#160;</td><td class="mdescRight">The set of initial reference vectors.  <br /></td></tr>
<tr class="separator:a7454753da4bdaef9f4a23cb66351f007"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><div class="compoundTemplParams">template&lt;typename <a class="el" href="_t_s_p_8cpp.html#aa2af735cda68526094633853c8a9894d">IndividualType</a>&gt;<br />
struct shark::ReferenceVectorAdaptation&lt; IndividualType &gt;</div><p>Reference vector adaptation for the <a class="el" href="classshark_1_1_r_v_e_a.html" title="Implements the RVEA algorithm.">RVEA</a> algorithm. </p>
<p>This operator is supposed to be applied regularly in the <a class="el" href="classshark_1_1_r_v_e_a.html" title="Implements the RVEA algorithm.">RVEA</a> algorithm to adjust the set of reference vectors to better match a scaled pareto front. See below paper for details: R. Cheng, Y. Jin, M. Olhofer, and B. Sendhoff, “A reference vector guided evolutionary algorithm for many-objective optimization,” IEEE Transactions on Evolutionary Computation, Vol 20, Issue 5, October 2016 <a href="http://dx.doi.org/10.1109/TEVC.2016.2519378">http://dx.doi.org/10.1109/TEVC.2016.2519378</a> </p>

<p class="definition">Definition at line <a class="el" href="_reference_vector_adaptation_8h_source.html#l00051">51</a> of file <a class="el" href="_reference_vector_adaptation_8h_source.html">ReferenceVectorAdaptation.h</a>.</p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a2e06c3dc458dc3292ed87c700ccac2c1" name="a2e06c3dc458dc3292ed87c700ccac2c1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2e06c3dc458dc3292ed87c700ccac2c1">&#9670;&#160;</a></span>operator()()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename <a class="el" href="_t_s_p_8cpp.html#aa2af735cda68526094633853c8a9894d">IndividualType</a> &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="structshark_1_1_reference_vector_adaptation.html">shark::ReferenceVectorAdaptation</a>&lt; <a class="el" href="_t_s_p_8cpp.html#aa2af735cda68526094633853c8a9894d">IndividualType</a> &gt;::operator() </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; <a class="el" href="_t_s_p_8cpp.html#aa2af735cda68526094633853c8a9894d">IndividualType</a> &gt; const &amp;&#160;</td>
          <td class="paramname"><em>population</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">RealMatrix &amp;&#160;</td>
          <td class="paramname"><em>referenceVectors</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">RealVector &amp;&#160;</td>
          <td class="paramname"><em>minAngles</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Apply adaptation operator and update the angles. </p>

<p class="definition">Definition at line <a class="el" href="_reference_vector_adaptation_8h_source.html#l00056">56</a> of file <a class="el" href="_reference_vector_adaptation_8h_source.html">ReferenceVectorAdaptation.h</a>.</p>

<p class="reference">References <a class="el" href="structshark_1_1_reference_vector_adaptation.html#a7454753da4bdaef9f4a23cb66351f007">shark::ReferenceVectorAdaptation&lt; IndividualType &gt;::m_initVecs</a>, <a class="el" href="namespaceshark.html#ac634abada89368b90d65b304a9018107">shark::unpenalizedFitness()</a>, and <a class="el" href="structshark_1_1_reference_vector_adaptation.html#a595d5f3ea74e2b31cc6fcfe79daa262f">shark::ReferenceVectorAdaptation&lt; IndividualType &gt;::updateAngles()</a>.</p>

</div>
</div>
<a id="a4cf77240090562c020ad4c5093df0ccc" name="a4cf77240090562c020ad4c5093df0ccc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4cf77240090562c020ad4c5093df0ccc">&#9670;&#160;</a></span>serialize()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename <a class="el" href="_t_s_p_8cpp.html#aa2af735cda68526094633853c8a9894d">IndividualType</a> &gt; </div>
<div class="memtemplate">
template&lt;typename Archive &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="structshark_1_1_reference_vector_adaptation.html">shark::ReferenceVectorAdaptation</a>&lt; <a class="el" href="_t_s_p_8cpp.html#aa2af735cda68526094633853c8a9894d">IndividualType</a> &gt;::serialize </td>
          <td>(</td>
          <td class="paramtype">Archive &amp;&#160;</td>
          <td class="paramname"><em>archive</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_reference_vector_adaptation_8h_source.html#l00103">103</a> of file <a class="el" href="_reference_vector_adaptation_8h_source.html">ReferenceVectorAdaptation.h</a>.</p>

<p class="reference">References <a class="el" href="structshark_1_1_reference_vector_adaptation.html#a7454753da4bdaef9f4a23cb66351f007">shark::ReferenceVectorAdaptation&lt; IndividualType &gt;::m_initVecs</a>.</p>

</div>
</div>
<a id="a595d5f3ea74e2b31cc6fcfe79daa262f" name="a595d5f3ea74e2b31cc6fcfe79daa262f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a595d5f3ea74e2b31cc6fcfe79daa262f">&#9670;&#160;</a></span>updateAngles()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename <a class="el" href="_t_s_p_8cpp.html#aa2af735cda68526094633853c8a9894d">IndividualType</a> &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void <a class="el" href="structshark_1_1_reference_vector_adaptation.html">shark::ReferenceVectorAdaptation</a>&lt; <a class="el" href="_t_s_p_8cpp.html#aa2af735cda68526094633853c8a9894d">IndividualType</a> &gt;::updateAngles </td>
          <td>(</td>
          <td class="paramtype">RealMatrix const &amp;&#160;</td>
          <td class="paramname"><em>referenceVectors</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">RealVector &amp;&#160;</td>
          <td class="paramname"><em>minAngles</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Compute the minimum angles between unit vectors. </p>

<p class="definition">Definition at line <a class="el" href="_reference_vector_adaptation_8h_source.html#l00088">88</a> of file <a class="el" href="_reference_vector_adaptation_8h_source.html">ReferenceVectorAdaptation.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="structshark_1_1_reference_vector_adaptation.html#a2e06c3dc458dc3292ed87c700ccac2c1">shark::ReferenceVectorAdaptation&lt; IndividualType &gt;::operator()()</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a7454753da4bdaef9f4a23cb66351f007" name="a7454753da4bdaef9f4a23cb66351f007"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7454753da4bdaef9f4a23cb66351f007">&#9670;&#160;</a></span>m_initVecs</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename <a class="el" href="_t_s_p_8cpp.html#aa2af735cda68526094633853c8a9894d">IndividualType</a> &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">RealMatrix <a class="el" href="structshark_1_1_reference_vector_adaptation.html">shark::ReferenceVectorAdaptation</a>&lt; <a class="el" href="_t_s_p_8cpp.html#aa2af735cda68526094633853c8a9894d">IndividualType</a> &gt;::m_initVecs</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The set of initial reference vectors. </p>
<p>This must be set before the operator is called the first time. </p>

<p class="definition">Definition at line <a class="el" href="_reference_vector_adaptation_8h_source.html#l00111">111</a> of file <a class="el" href="_reference_vector_adaptation_8h_source.html">ReferenceVectorAdaptation.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="structshark_1_1_reference_vector_adaptation.html#a2e06c3dc458dc3292ed87c700ccac2c1">shark::ReferenceVectorAdaptation&lt; IndividualType &gt;::operator()()</a>, and <a class="el" href="structshark_1_1_reference_vector_adaptation.html#a4cf77240090562c020ad4c5093df0ccc">shark::ReferenceVectorAdaptation&lt; IndividualType &gt;::serialize()</a>.</p>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li>include/shark/Algorithms/DirectSearch/Operators/<a class="el" href="_reference_vector_adaptation_8h_source.html">ReferenceVectorAdaptation.h</a></li>
</ul>
</div><!-- contents -->
</div>
</body>
</html>
